package ddd.ajava.chapter2.question5;

import java.lang.reflect.Proxy;

public class Bootstrap {
	public static void main(String[] args){
		Person person = new Person();
		SetInterface per=(SetInterface) Proxy.newProxyInstance(SetInterface.class.getClassLoader(), new Class[]{SetInterface.class},new PersonProxy(person));
		per.setIdNo("5122245566");
		per.setName("张小平");
		per.setAge(23);
		per.setSex("Male");
		per.setIsMerried(true);
	}
}
